import request from '@/utils/requestUtil'

// 获取当前用户领养的宠物
export function getMyAdoptionPets(petBreed, status) {
	return request({
		method: 'GET',
		url: '/pet/petadoption/getMyAdoptionPets',
		header: {
			'content-type': 'application/json;charset=utf-8'
		},
		params: {
			petBreed: petBreed,
			status: status
		}
	})
}

// 获取当前用户领养的宠物
export function confirmAdoption(id) {
	return request({
		method: 'PUT',
		url: '/pet/petsend',
		header: {
			'content-type': 'application/json;charset=utf-8'
		},
		data: {
			id: id,
			petStatus: 2
		}
	})
}